﻿
@{
    ViewBag.Title = "AddView";
    Layout = "~/Views/Shared/_Layout.cshtml";
}

<div class="box">
    <header class="bg-alizarin text-white">
        <h4>Form Basic</h4>
        <!-- begin box-tools -->
        <div class="box-tools">
            <a class="fa fa-fw fa-minus" href="#" data-box="collapse"></a>
            <a class="fa fa-fw fa-square-o" href="#" data-fullscreen="box"></a>
            <a class="fa fa-fw fa-refresh" href="#" data-box="refresh"></a>
            <a class="fa fa-fw fa-times" href="#" data-box="close"></a>
        </div>
        <!-- END: box-tools -->
    </header>
    <div class="box-body collapse in">
        <form class="form-horizontal" action="/Home/AddAnswer" method="post">
            <div class="form-group">
                <label for="text1" class="col-sm-2 control-label">AnswerId</label>
                <div class="col-sm-10">
                    <input type="text" class="form-control" id="text1" name="AnswerId">
                </div>
            </div>
            <hr class="b-s-dashed">
            <div class="form-group">
                @Html.ValidationMessage("AnswerId")
            </div>
            <hr class="b-s-dashed">
            <div class="form-group">
                <label for="text1" class="col-sm-2 control-label">AnswerContent</label>
                <div class="col-sm-10">
                    <input type="text" class="form-control" id="pass1" name="AnswerContent">
                </div>
            </div>
            <hr class="b-s-dashed">
            <div class="form-group">
                @Html.ValidationMessage("AnswerContent")
            </div>
            <hr class="b-s-dashed">
            <div class="form-group">
                <label for="textarea1" class="col-sm-2 control-label">BestNum</label>
                <div class="col-sm-10">
                    <textarea class="form-control" rows="3" id="textarea1" name="BestNum"></textarea>
                </div>
            </div>
            <hr class="b-s-dashed">
            <div class="form-group">
                @Html.ValidationMessage("BestNum")
            </div>
            <hr class="b-s-dashed">

            <input type="submit" value="提交" />  
        </form>
    </div>
</div>
